.class Lcom/instagram/creation/video/f/t;
.super Lcom/instagram/d/a;
.source "CamcorderFragment.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/d/a",
        "<",
        "Ljava/lang/String;",
        "Ljava/lang/Void;",
        "Ljava/lang/Boolean;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/creation/video/f/a;


# direct methods
.method private constructor <init>(Lcom/instagram/creation/video/f/a;)V
    .locals 0
    .parameter

    .prologue
    .line 549
    iput-object p1, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-direct {p0}, Lcom/instagram/d/a;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/creation/video/f/a;Lcom/instagram/creation/video/f/b;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 549
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/t;-><init>(Lcom/instagram/creation/video/f/a;)V

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/String;)Ljava/lang/Boolean;
    .locals 6
    .parameter

    .prologue
    const/4 v5, 0x0

    .line 553
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v0}, Lcom/instagram/creation/video/f/a;->b(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->d()Z

    move-result v0

    if-nez v0, :cond_0

    .line 554
    invoke-static {}, Lcom/instagram/pendingmedia/b/a;->a()Lcom/instagram/pendingmedia/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/b/a;->d()Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    .line 556
    iget-object v1, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-virtual {v1}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/creation/video/j/k;->a(Lcom/instagram/pendingmedia/model/c;Landroid/content/Context;)Ljava/util/List;

    move-result-object v1

    .line 558
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_1

    .line 559
    const-string v2, "CamcorderFragment"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " clips available. Trying to recover."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 561
    :try_start_0
    iget-object v2, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-virtual {v2, v1}, Lcom/instagram/creation/video/f/a;->a(Ljava/util/List;)V

    .line 562
    iget-object v1, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v1, v0}, Lcom/instagram/creation/video/f/a;->a(Lcom/instagram/creation/video/f/a;Lcom/instagram/pendingmedia/model/c;)Lcom/instagram/pendingmedia/model/c;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 571
    :cond_0
    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    :goto_0
    return-object v0

    .line 563
    :catch_0
    move-exception v0

    .line 564
    const-string v1, "CamcorderFragment"

    const-string v2, "Failed to recover clips :("

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 565
    invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 568
    :cond_1
    invoke-static {v5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0
.end method

.method protected bridge synthetic a([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 549
    check-cast p1, [Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/instagram/creation/video/f/t;->a([Ljava/lang/String;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected a(Ljava/lang/Boolean;)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x1

    .line 576
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    .line 577
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v0}, Lcom/instagram/creation/video/f/a;->p(Lcom/instagram/creation/video/f/a;)V

    .line 580
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v0}, Lcom/instagram/creation/video/f/a;->q(Lcom/instagram/creation/video/f/a;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 581
    const-string v0, "CamcorderFragment"

    const-string v1, "Starting import after recovery"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 582
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/instagram/creation/video/f/a;->c(Lcom/instagram/creation/video/f/a;Z)Z

    .line 584
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/a;->m()Landroid/support/v4/app/r;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v1}, Lcom/instagram/creation/video/f/a;->o(Lcom/instagram/creation/video/f/a;)Lcom/instagram/pendingmedia/model/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v2}, Lcom/instagram/creation/video/f/a;->r(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/g/a;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v3}, Lcom/instagram/creation/video/f/a;->s(Lcom/instagram/creation/video/f/a;)Z

    move-result v3

    invoke-static {v0, v1, v2, v4, v3}, Lcom/instagram/creation/video/j/j;->a(Landroid/support/v4/app/r;Ljava/lang/String;Lcom/instagram/creation/video/g/a;ZZ)V

    .line 592
    :cond_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/video/j/k;->f(Landroid/content/Context;)V

    .line 596
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v0}, Lcom/instagram/creation/video/f/a;->t(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/ui/VideoShutterButton;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v0}, Lcom/instagram/creation/video/f/a;->b(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/a;->m()Z

    move-result v0

    if-nez v0, :cond_2

    .line 597
    iget-object v0, p0, Lcom/instagram/creation/video/f/t;->a:Lcom/instagram/creation/video/f/a;

    invoke-static {v0}, Lcom/instagram/creation/video/f/a;->t(Lcom/instagram/creation/video/f/a;)Lcom/instagram/creation/video/ui/VideoShutterButton;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/instagram/creation/video/ui/VideoShutterButton;->setEnabled(Z)V

    .line 599
    :cond_2
    return-void
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 549
    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p0, p1}, Lcom/instagram/creation/video/f/t;->a(Ljava/lang/Boolean;)V

    return-void
.end method
